<?php
/**
 * Project: AIGC
 * Author: moufer <moufer@163.com>
 * Date: 2024/7/19 22:09
 */

namespace module\chat\controller\admin;

use app\library\Controller;
use mof\annotation\AdminPerm;
use think\response\Json;

#[AdminPerm(
    title: '参数设置', url: 'chat/config', actions: '*',
    sort: 1, icon: 'SetUp', group: 'main'
)]
class Config extends Controller
{
    use \app\concern\Config {
        options as protected traitOptions;
        submit as protected traitSubmit;
    }

    public function options(string $module = 'chat'): Json
    {
        return $this->traitOptions($module);
    }

    public function submit(string $module = 'chat'): Json
    {
        return $this->traitSubmit($module);
    }
}